package com.gpt.article.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 使用日志对象 gpt_use_token
 * 
 * @author zhuzi
 * @date 2023-12-12
 */
public class GptUseToken extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private Long id;

    /**创建生成id**/
    private Long fileId;

    /** 使用模块 */
    @Excel(name = "使用模块")
    private String moduleName;

    /** 业务编号 */
    @Excel(name = "业务编号")
    private Long businessId;

    /** 任务编号 */
    @Excel(name = "任务编号")
    private Long taskId;

    /** 花费token */
    @Excel(name = "花费token")
    private Integer totalTokens;

    /** 输入token */
    @Excel(name = "输入token")
    private Integer promptTokens;

    /** 输出token */
    @Excel(name = "输出token")
    private Integer completionTokens;


    /** 使用日期 */
    private String useDate;

    /** 使用模型 */
    @Excel(name = "使用模型")
    private String useModel;

    /** 花费金额 */
    @Excel(name = "花费金额")
    private Long payMoney;

    /** 运行时间 */
    @Excel(name = "运行时间")
    private Long elapsedTime;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setModuleName(String moduleName) 
    {
        this.moduleName = moduleName;
    }

    public String getModuleName() 
    {
        return moduleName;
    }
    public void setBusinessId(Long businessId) 
    {
        this.businessId = businessId;
    }

    public Long getBusinessId() 
    {
        return businessId;
    }
    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }

    public void setUseDate(String useDate)
    {
        this.useDate = useDate;
    }

    public String getUseDate() 
    {
        return useDate;
    }
    public void setUseModel(String useModel) 
    {
        this.useModel = useModel;
    }

    public String getUseModel() 
    {
        return useModel;
    }
    public void setPayMoney(Long payMoney) 
    {
        this.payMoney = payMoney;
    }

    public Long getPayMoney() 
    {
        return payMoney;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("moduleName", getModuleName())
            .append("businessId", getBusinessId())
            .append("taskId", getTaskId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("useDate", getUseDate())
            .append("useModel", getUseModel())
            .append("payMoney", getPayMoney())
            .toString();
    }

    public Integer getTotalTokens() {
        return totalTokens;
    }

    public void setTotalTokens(Integer totalTokens) {
        this.totalTokens = totalTokens;
    }

    public Integer getPromptTokens() {
        return promptTokens;
    }

    public void setPromptTokens(Integer promptTokens) {
        this.promptTokens = promptTokens;
    }

    public Integer getCompletionTokens() {
        return completionTokens;
    }

    public void setCompletionTokens(Integer completionTokens) {
        this.completionTokens = completionTokens;
    }

    public Long getElapsedTime() {
        return elapsedTime;
    }

    public void setElapsedTime(Long elapsedTime) {
        this.elapsedTime = elapsedTime;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    public Long getFileId() {
        return fileId;
    }
}
